package com.yuyou.hxyy.service.api.mapper;

import com.yuyou.hxyy.service.api.bean.Pagination;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.yuyou.hxyy.service.api.entity.AuthUser;

import java.util.List;

@Mapper
public interface AuthUserMapper {
    int deleteByPrimaryKey(Long authUserId);

    int insert(AuthUser record);

    AuthUser selectByPrimaryKey(Long authUserId);

    int updateByPrimaryKeySelective(AuthUser record);
    
    AuthUser seleteAuthUserByAccount(@Param(value = "account")String account);
    
    AuthUser seleteByAccount7Type(@Param(value = "account")String account,@Param(value = "userType")Integer userType);

    int batchInsertAuthUser(List<AuthUser> userList);

    int findAuthUserPageCount(Pagination<AuthUser> p);

    List<AuthUser> findAuthUserPageList(Pagination<AuthUser> p);
}